package com.xywh.wanandroid.viewmodel

import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import com.xywh.wanandroid.data.repository.WanAndroidRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import javax.inject.Inject

@HiltViewModel
class RankComposeViewModel @Inject constructor(
    val repository: WanAndroidRepository
) : BaseViewModel() {

    val ranks = repository.fetchRankDataList().cachedIn(viewModelScope)

}